package com.edu.service.impl;

import java.util.List;

import com.edu.dao.galleryDao;
import com.edu.dao.impl.UserDaoImpl;
import com.edu.dao.impl.galleryDaoImpl;
import com.edu.entity.Founder;
import com.edu.entity.Information;
import com.edu.entity.Reason;
import com.edu.entity.Tu;
import com.edu.entity.User;
import com.edu.entity.gallery;

public class GalleryServiceImpl implements com.edu.service.GalleryService {
	
	@Override
	public List<gallery> allGallery(String gallery) {
		// TODO Auto-generated method stub
		galleryDao aGallery=new galleryDaoImpl();
		List<gallery> lg=aGallery.allGallery(gallery);
		return lg;
	}
	galleryDaoImpl gallery= new  galleryDaoImpl();
	@Override
	public List<Information> allInformation() {
		// TODO Auto-generated method stub
		List<Information> lg= gallery.allInformation();
		return lg;
	}
	@Override
	public List<Information> allInformationYou() {
		// TODO Auto-generated method stub
		List<Information> lg= gallery.allInformationYou();
		return lg;
	}
	@Override
	public List<Information> allInformationMoney() {
		// TODO Auto-generated method stub
		List<Information> lg= gallery.allInformationMoney();
		return lg;
	}
	@Override
	public List<Information> allInformationMoneyUser() {
		// TODO Auto-generated method stub
		List<Information> lg= gallery.allInformationMoneyUser();
		return lg;
	}
	@Override
	public List<Information> allInformationXian() {
		// TODO Auto-generated method stub
		List<Information> lg= gallery.allInformationXian();
		return lg;
	}
	@Override
	public List<Information> allInformationHuo() {
		// TODO Auto-generated method stub
		List<Information> lg= gallery.allInformationHuo();
		return lg;
	}
	@Override
	public List<Founder> Founders() {
		// TODO Auto-generated method stub
		List<Founder> lg= gallery.Founders();
		return lg;
	}
	@Override
	public List<Reason> Reasons() {
		// TODO Auto-generated method stub
		List<Reason> lg= gallery.Reasons();
		return lg;
	}
	@Override
	public List<Tu> queryByUser(Tu tu) {
		// TODO Auto-generated method stub
		UserDaoImpl userDaoImpl = new UserDaoImpl();
		List<Tu> selectUser = userDaoImpl.queryByIdAll(tu);
		if(selectUser.size()==0) {
			System.out.println("No DATA");
		}
		return selectUser;
	}
	@Override
	public int Updeta(Tu tu) {
		// TODO Auto-generated method stub
		int num =gallery.Updeta(tu);
		return num;
	}
	@Override
	public int Insert(Tu tu) {
		// TODO Auto-generated method stub
		int num =gallery.Insert(tu);
		return num;
	}
	@Override
	public List<Tu> allfor() {
		// TODO Auto-generated method stub
		List<Tu> selectUser = gallery.allfor();
		if(selectUser.size()==0) {
			System.out.println("No DATA");
		}
		return selectUser;
	}

	
}
